//
//  HWSwitch.h
//  OCDome
//
//  Created by 李含文 on 2020/10/12.
//  Copyright © 2020 李含文. All rights reserved.
//

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN
IB_DESIGNABLE

@interface HWSwitch : UIView

@property (nonatomic, assign) IBInspectable BOOL on;

/* 默认颜色 */
@property (nonatomic, strong) IBInspectable UIColor *defaultColor;
/* 选中颜色 */
@property (nonatomic, strong) IBInspectable UIColor *selectedColor;
/* 滑块颜色 */
@property (nonatomic, strong) IBInspectable UIColor *sliderColor;
/* 滑块间距 默认:2.0 内部控制最大控制在高度的1/4*/
@property (nonatomic, assign) IBInspectable CGFloat spacing;

/* 边框宽度 */
@property (nonatomic, assign) IBInspectable CGFloat contentborderWidth;
/* 边框颜色 */
@property (nonatomic, strong) IBInspectable UIColor *contentborderColor;
@end

NS_ASSUME_NONNULL_END
